const isLocal = process.env.VUE_ENV === "client";
const base = {
  user_info_get: {
    url: "user/info?id=${id}"
  }
};
const mock = isLocal
  ? {
      user_info_get: "https://beta.dui.ai/console/api/v1.0/friendlyLink/list"
    }
  : {};

Object.keys(mock).forEach(key => {
  const urlKey = Object.keys(mock[key])[0];
  const url = mock[key][urlKey];
  if (apis[key]) {
    apis[key][urlKey] = url;
  }
});

export default base;
